package com.awcall.iot.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuhui
 * @since 2018-03-23
 */
@TableName("bd_project")
public class Project extends Model<Project> {

    private static final long serialVersionUID = 1L;

	private Integer id;
	private String name;
	private String ip;
	@TableField("web_name")
	private String webName;
	@TableField(value = "created_at", fill = FieldFill.INSERT)
	private Date createdAt;
	@TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
	private Date updatedAt;


	public Integer getId() {
		return id;
	}

	public Project setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public Project setName(String name) {
		this.name = name;
		return this;
	}

	public String getIp() {
		return ip;
	}

	public Project setIp(String ip) {
		this.ip = ip;
		return this;
	}

	public String getWebName() {
		return webName;
	}

	public Project setWebName(String webName) {
		this.webName = webName;
		return this;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public Project setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public Project setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

	public static final String ID = "id";

	public static final String NAME = "name";

	public static final String IP = "ip";

	public static final String WEB_NAME = "web_name";

	public static final String CREATED_AT = "created_at";

	public static final String UPDATED_AT = "updated_at";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Project{" +
			", id=" + id +
			", name=" + name +
			", ip=" + ip +
			", webName=" + webName +
			", createdAt=" + createdAt +
			", updatedAt=" + updatedAt +
			"}";
	}
}
